const routes = [
  {
    path: '/',
    component: () => import('layouts/MainLayout.vue'),
    children: [
      {
        path: '',
        component: () => import('src/pages/dashboard/Index.vue')
      },
      {
        path: 'meeting/:room',
        name: "Meeting",
        component: () => import('src/pages/videomeeting/Index.vue'),
        props: true
      }
    ]
  },


  {
    path: '/login',
    component: () => import('layouts/UserLayout.vue'),
    children: [
      {
        path: '',
        component: () => import('src/pages/login/Index.vue')
      }
    ]
  },


  // Always leave this as last one,
  // but you can also remove it
  {
    path: '/:catchAll(.*)*',
    component: () => import('pages/ErrorNotFound.vue')
  }
]

export default routes
